<?php

namespace api\controller;

// +----------------------------------------------------------------------
// | 实体控制层
// +----------------------------------------------------------------------

use common\controller\VerifyController;
use common\service\EntityRelationService;
use think\Request;
use think\Response;

class EntityRelationController extends VerifyController
{

    /** @var EntityRelationService */
    protected $entityRelationService;

    public function __construct()
    {
        parent::__construct();
        $this->entityRelationService = EntityRelationService::getInstance();
    }

    /**
     * 镜头关联资产关卡查询
     * @param Request $request
     * @return Response
     */
    public function shotRelateAssetLevelList(Request $request)
    {
        $shotId = $request->param()['param']['shot_id'];
        $assetLevelList = $this->entityRelationService->shotRelateAssetLevelList($shotId);
        return json(success_response('OK', $assetLevelList));
    }

}
